//
//  CaseDefaultCell.m
//  KMedicine
//
//  Created by song on 16/7/6.
//  Copyright © 2016年 caomu. All rights reserved.
//

#import "CaseDefaultCell.h"
#import "CaseModel.h"

@implementation CaseDefaultCell


- (instancetype)init{
    if (self = [super init]) {
    }
    
    return [self initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
}

- (void)setModel:(CaseModel *)model{
    _model = model;
//    self.textLabel.text = [NSString stringWithFormat:@"%@",model.title];
    
    if (model.subtitle) {
        self.detailTextLabel.text = model.subtitle;
    }
}

- (void)setDict:(NSDictionary *)dict{
    
    _dict = dict;
    //cell 赋值
    self.textLabel.text = [NSString stringWithFormat:@"%@",dict[@"title"]];

    if (dict[@"accessory"]) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
